package assign4;

import java.rmi.registry.LocateRegistry;

/** Run this main function in order to launch a set of clients
 * and servers locally. Also launches the RMI registry and
 * links connects the clients and servers.
 */
public class LocalQuickStart
{
	public static void main(String[] args) throws Exception
	{
		if(Globals.createRegistry)
		{
			// Start the Registry
			LocateRegistry.createRegistry(Globals.rmiRegistryPort);
		}
		if(Globals.createServers)
		{
			DBServerCreator.main(args);
		}
		DBClientCreator.main(args);
	}
}